{%for item in result %}
    <a class="list-group-item  list-group-item-action" href="/admin/{{item.url}}">
        {%for tag in item.tags %}
            <span class="badge bg-{{tag.color}}">{{tag.name}}</span>
        {%endfor%}
        {{item.title}}
    </a>
{%endfor%}